<!--
 * @Author: maqaing
 * @Date: 2021-10-24 14:55:04
 * @LastEditors: maqiang
 * @LastEditTime: 2021-10-24 16:14:32
 * @Description: 
-->
<template>
  <el-table :data="Roles" stripe style="width: 100%">
    <el-table-column type="index" label="序号" width="180"> </el-table-column>
    <el-table-column prop="name" label="用户名" width="180"> </el-table-column>
    <el-table-column prop="address" label="姓名"> </el-table-column>
    <el-table-column prop="address" label="角色"> </el-table-column>
    <el-table-column prop="address" label="性别"> </el-table-column>
    <el-table-column prop="address" label="状态"> </el-table-column>
    <el-table-column prop="address" label="手机号"> </el-table-column>
    <el-table-column prop="address" label="操作"> </el-table-column>





  </el-table>
</template>
<script>
import request from "@/utils/request";
export default {
  data() {
    return {
      // 所有角色
      Roles: [],
    };
  },
  methods: {
    // 查询所有角色
    findAllRoles() {
      request.get("/role/findAll").then((res) => {
        this.Roles = res.data;
        console.log(res);
      });
    },
  },
  created() {
    // 执行查询角色函数
    this.findAllRoles();
  },
};
</script>
<style scoped>
</style>